package com.ruoyi.dr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dr.mapper.DrHomeScoreMapper;
import com.ruoyi.dr.domain.DrHomeScore;
import com.ruoyi.dr.service.IDrHomeScoreService;

/**
 * 带货评分信息 /api/authorStatData/authorReputationDetailService业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-12
 */
@Service
public class DrHomeScoreServiceImpl implements IDrHomeScoreService 
{
    @Autowired
    private DrHomeScoreMapper drHomeScoreMapper;

    /**
     * 查询带货评分信息 /api/authorStatData/authorReputationDetail
     * 
     * @param uid 带货评分信息 /api/authorStatData/authorReputationDetail主键
     * @return 带货评分信息 /api/authorStatData/authorReputationDetail
     */
    @Override
    public DrHomeScore selectDrHomeScoreByUid(String uid)
    {
        return drHomeScoreMapper.selectDrHomeScoreByUid(uid);
    }

    /**
     * 查询带货评分信息 /api/authorStatData/authorReputationDetail列表
     * 
     * @param drHomeScore 带货评分信息 /api/authorStatData/authorReputationDetail
     * @return 带货评分信息 /api/authorStatData/authorReputationDetail
     */
    @Override
    public List<DrHomeScore> selectDrHomeScoreList(DrHomeScore drHomeScore)
    {
        return drHomeScoreMapper.selectDrHomeScoreList(drHomeScore);
    }

    /**
     * 新增带货评分信息 /api/authorStatData/authorReputationDetail
     * 
     * @param drHomeScore 带货评分信息 /api/authorStatData/authorReputationDetail
     * @return 结果
     */
    @Override
    public int insertDrHomeScore(DrHomeScore drHomeScore)
    {
        return drHomeScoreMapper.insertDrHomeScore(drHomeScore);
    }

    /**
     * 修改带货评分信息 /api/authorStatData/authorReputationDetail
     * 
     * @param drHomeScore 带货评分信息 /api/authorStatData/authorReputationDetail
     * @return 结果
     */
    @Override
    public int updateDrHomeScore(DrHomeScore drHomeScore)
    {
        return drHomeScoreMapper.updateDrHomeScore(drHomeScore);
    }

    /**
     * 批量删除带货评分信息 /api/authorStatData/authorReputationDetail
     * 
     * @param uids 需要删除的带货评分信息 /api/authorStatData/authorReputationDetail主键
     * @return 结果
     */
    @Override
    public int deleteDrHomeScoreByUids(String[] uids)
    {
        return drHomeScoreMapper.deleteDrHomeScoreByUids(uids);
    }

    /**
     * 删除带货评分信息 /api/authorStatData/authorReputationDetail信息
     * 
     * @param uid 带货评分信息 /api/authorStatData/authorReputationDetail主键
     * @return 结果
     */
    @Override
    public int deleteDrHomeScoreByUid(String uid)
    {
        return drHomeScoreMapper.deleteDrHomeScoreByUid(uid);
    }
}
